<?php 
error_reporting(E_ALL & ~E_NOTICE);
include_once("config.php");
include_once("model/function.php");

$thispid=str_replace("_0_0","",str_replace("mm_","",$userpid));

$result=mysql_query("select * from ".$prefix."searchkey order by s_id desc limit ".$search_key_num);
while($arr=mysql_fetch_array($result)){
	$searchkeys[] = '<a href="'.$website.'/search-'.urlencode($arr['s_name']).$ljoin.$lcat.'0'.$ljoin.$lpage.'1'.$rewrite_postfix.'">'.$arr['s_name'].'</a> ';
}

$result=mysql_query("select * from ".$prefix."newshop order by n_id desc limit ".$newshopnum);
while($arr=mysql_fetch_array($result)){
	$arr['n_link']= base64_encode(str_replace("15252835",$thispid,$arr['n_link']));
	$newshops[] = $arr;
}

?>
